package com.lyl.controller;


import com.lyl.common.Msg;
import com.lyl.entity.Administrator;
import com.lyl.entity.Teacher;
import org.springframework.web.bind.annotation.*;

/**
 * 管理员
 * @author LYL
 * @since 2021-05-11
 */
@RestController
@RequestMapping("/administrator")
public class AdministratorController {

    //查询所有管理员
    @RequestMapping("/getAdmin")
    public Msg getAdmin(){
        return null;
    }
    //根据管理员id查询
    @RequestMapping("/getAdminById/{id}")
    public Msg getAdminById(@PathVariable(name = "id") int id){
        return null;
    }
    //添加/注册管理员
    @RequestMapping({"/addAdmin","register"})
    public Msg addAdmin(@RequestBody Administrator administrator){
        return null;
    }
    //删除管理员
    @RequestMapping("/delAdmin/{id}")
    public Msg delAdmin(@PathVariable(name = "id") int id){
        return null;
    }
    //修改管理员信息
    @RequestMapping("/updateAdmin")
    public Msg updateAdmin(@RequestBody Administrator administrator){
        return null;
    }
}
